home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / scim.postinst < prev    next >
Encoding:
Text File  |  2007-03-05  |  1.9 KB  |  68 lines

  1. #! /bin/sh
  2. # postinst script for scim
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  14. #          <failed-install-package> <version> `removing'
  15. #          <conflicting-package> <version>
  16. # for details, see http://www.debian.org/doc/debian-policy/ or
  17. # the debian-policy package
  18. #
  19. # quoting from the policy:
  20. #     Any necessary prompting should almost always be confined to the
  21. #     post-installation script, and should be protected with a conditional
  22. #     so that unnecessary prompting doesn't happen if a package's
  23. #     installation fails and the `postinst' is called with `abort-upgrade',
  24. #     `abort-remove' or `abort-deconfigure'.
  25. ua_inst () {
  26.     update-alternatives \
  27.         --install /etc/X11/xinit/xinput.d/$1 xinput-$1 \
  28.         /etc/X11/xinit/xinput.d/$2 $3 ;
  29. }
  30.  
  31. case "$1" in
  32.     configure)
  33.         # Set up default
  34.         ua_inst all_ALL scim  0
  35.         ua_inst ja_JP   scim 50
  36.         ua_inst ko_KR   scim 50
  37.         ua_inst zh_CN   scim 50
  38.         ua_inst zh_TW   scim 50
  39.         ua_inst zh_HK   scim 50
  40.         ua_inst zh_SG   scim 50
  41.         ua_inst all_ALL scim-immodule 0
  42.         ua_inst ja_JP   scim-immodule 0
  43.         ua_inst ko_KR   scim-immodule 0
  44.         ua_inst zh_CN   scim-immodule 0
  45.         ua_inst zh_TW   scim-immodule 0
  46.         ua_inst zh_HK   scim-immodule 0
  47.         ua_inst zh_SG   scim-immodule 0
  48.     ;;
  49.  
  50.     abort-upgrade|abort-remove|abort-deconfigure)
  51.  
  52.     ;;
  53.  
  54.     *)
  55.         echo "postinst called with unknown argument \`$1'" >&2
  56.         exit 1
  57.     ;;
  58. esac
  59.  
  60. # dh_installdeb will replace this with shell code automatically
  61. # generated by other debhelper scripts.
  62.  
  63.  
  64.  
  65. exit 0
  66.  
  67.  
  68.